<template>
  <el-input v-model="formData.input1" />
  <el-input v-model="formData.input2" />
</template>
  
<script setup>
import {ref,computed, watch} from 'vue'
const emits = defineEmits(['update:modelVlalue'])

const props =defineProps({
    modelValue:{
        type:Object,
        default:()=>({
            input1:'1',
            input2:'2'
        })
    }
})
const formData =computed(()=>props.modelValue)

watch(()=>formData.value,(val)=>{
    emits('update:modelVlalue',val)
})
  

  
</script>